<?php
namespace app\home\controller;
use cmf\controller\HomeBaseController;

class UserController extends HomeBaseController
{

public function _initialize(){

	
		if (!session('username')) {
			//$this->error('请先登录！','/');
			parent::_initialize();
        	//$this->redirect('/');
			$this->redirect('home/Login/login');
		}
	
}


}